package com.example.dao;

import com.example.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRepository {

    public void save(User user);
    public void deleteById(long id);
    public User findById(long id);
    public List<User> findAll();

    //@Query(value = "select * from user where name like %?1%", nativeQuery = true)
    //List<User> findByNameLike(String name, Pageable pageRequest);
}
